<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"   
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:composite="http://java.sun.com/jsf/composite"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:faces="http://java.sun.com/jsf/composite/faces/components">
 
    <composite:interface>
    	<!-- Attributes for formItem -->
    	<composite:attribute name="id" type="java.lang.String"/>
    	<composite:attribute name="for" type="java.lang.String"/>
    	<composite:attribute name="dataCount" type="java.lang.Number"/>
	   	<!-- Attributes for inputItem -->
    </composite:interface>
 
    <composite:implementation>
    	<div id="#{cc.clientId}" class="dataTable-tools-container">
			<div class="dataTable-tools">
				<span class="dataTable-tools-count">
					共#{cc.attrs.dataCount}条
				</span>
			</div>
			<div class="dataTable-tools">
				<faces:rows for="#{cc.attrs['for']}" render="#{cc.attrs['for']} #{cc.clientId}"/>
			</div>
			<div class="dataTable-tools">
				<rich:dataScroller for="#{cc.attrs['for']}" renderIfSinglePage="true" />
			</div>
		</div>
    </composite:implementation>
</ui:composition>